package com.share.wechat.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "WEB_CONFIG_SYSTEM")
public class ConfigSystem {
    /**
     * id
     */
    @Id
    private String id;
    /**
     * 存贮的配置文件
     */
    private String keyCode;
    /**
     * 配置文件描述信息
     */
    @Column(name = "DESCP")
    private String desc;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 该配置分组信息
     */
    private String parentCode;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKeyCode() {
        return keyCode;
    }

    public void setKeyCode(String keyCode) {
        this.keyCode = keyCode;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    @Override
    public String toString() {
        return "ConfigSystem{" +
                "id='" + id + '\'' +
                ", keyCode='" + keyCode + '\'' +
                ", desc='" + desc + '\'' +
                ", createTime='" + createTime + '\'' +
                ", parentCode='" + parentCode + '\'' +
                '}';
    }
}
